﻿@model MobileWebsiteGenerator.Entities.Customer

@{
    Layout = "~/Views/Shared/_Layout_login.he-IL.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/Forms/En%20engine.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/Forms/Engine.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Content/Forms/Engine.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/js/jquery.maskedinput-1.3.js")" type="text/javascript"></script>
<div style="float: right; margin-left: 200px; vertical-align: top; margin: 0px; padding: 0px;"
    class="form_content">
    <h3>
     עריכת פרטים אישיים
    </h3>
    <div>
        <form id="pform" class="" method="post" action="/Customer/Edit">
        @Html.HiddenFor(model => model.Customer_id)
        <div class="form_row">
            <label>
                Full Name</label>
            <input class="form_input validate[required,minSize[5]] text-input" id="FullName"
                name="FullName" type="text" value="@Model.FullName" />
            <span class="field-validation-valid" data-valmsg-for="FullName" data-valmsg-replace="true">
            </span>
        </div>
    
        @Html.HiddenFor(model => model.IsActive)
        @Html.HiddenFor(model => model.web_id)
        <div class="form_row">
            <label>
               שם משתמש</label>
            <input class="form_input validate[required,minSize[5],custom[onlyLetterNumber]] text-input "
                id="UserName" name="UserName" type="text" value="@Model.UserName" />
            <span class="field-validation-valid" data-valmsg-for="UserName" data-valmsg-replace="true">
            </span>
        </div>
        <div class="form_row">
            <label>
               סיסמה</label>
            <input class="form_input validate[required,minSize[5],custom[onlyLetterNumber]] text-input "
                id="Password" name="Password" type="password" value="@Model.Password"/>
            <span class="field-validation-valid" data-valmsg-for="UserName" data-valmsg-replace="true">
            </span>
        </div>

         <div class="form_row">
            <label>
                אישור סיסמה</label>
            <input class="form_input validate[required] text-input" id="confirmPassword" name="confirmPassword"
                type="password" value="@Model.confirmPassword" />
            <span class="field-validation-valid" data-valmsg-for="confirmPassword" data-valmsg-replace="true">
            </span>
        </div>



        <div class="form_row">
            <label>
                דוא"ל</label>
            <input class="form_input validate[required,custom[email]] text-input" data-val="true"
                data-val-required="The Email field is required." id="Email" name="Email" type="text"
                value="@Model.Email" />
        </div>

          <div class="form_row">
            <label>
               אשר דוא"ל</label>
            <input class="form_input validate[required,custom[email]] text-input" id="ConfirmEmail"
                name="ConfirmEmail" type="text" value="@Model.ConfirmEmail" />
            <span class="field-validation-valid" data-valmsg-for="ConfirmEmail" data-valmsg-replace="true">
            </span>
        </div>

        <div class="form_row">
            <label>
                חברה</label>
            <input class="form_input " id="company" name="company" type="text" value="@Model.company" />
            <span class="field-validation-valid" data-valmsg-for="company" data-valmsg-replace="true">
            </span>
        </div>
        <div class="form_row">
            <label>
                אתר אינטרנט</label>
            <input class="form_input  " id="WebsiteAddress" name="WebsiteAddress" type="text"
                value="@Model.WebsiteAddress" />
            <span class=" field-validation-valid" data-valmsg-for="WebsiteAddress" data-valmsg-replace="true">
            </span>
        </div>
        <div class="form_row">
            <label>
                טלפון
</label>
            <input type="text" class="form_input  " name="phone" id="phone" value="@Model.phone" />
        </div>
        <input type="Submit" class="form_submits" name="submit" value="Update" />
        </form>
    </div>
</div>
<style type="text/css">
    #submit:hover
    {
        background-color: #11639d;
        color: White;
    }
    
    div.form_content .form_row label
    {
        background-color: #11639d;
        color: White;
    }
</style>

<style type="text/css">

input.form_submits
{
   
width: auto;
height: auto;
color: #4F4F4D;
font-size: 18px;

cursor: pointer;
float: right;
margin: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
text-align:right;
float:left;

background: url('../images/arrow left.png') no-repeat 20px 20px;
border: 1px solid #DEDEDE;
background: url('../images/arrow left.png') no-repeat 20px 20px;
background-position: left center;
}
    

</style>